package com.sk.weichat.bean;

import java.util.List;

/**
 * 检查Token是否过期的Bean
 */
public class LoginAuto {
    /**
     * settings : {"allowAtt":1,"allowGreet":1,"allowQueryLoc":1,"chatRecordTimeOut":"-1.0","chatSyncTimeLen":-2,"closeTelephoneFind":1,"friendFromList":"1,2,3,4,5","friendsVerify":1,"isEncrypt":0,"isKeepalive":1,"isTyping":0,"isUseGoogleMap":0,"isVibration":0,"multipleDevices":0,"nameSearch":1,"onlyAllowAttentionSendMsg":0,"openService":0,"phoneSearch":1,"showLastLoginTime":1,"showTelephone":1}
     * serialStatus : 2
     * tokenExists : 0
     * nickname : 谢丹
     * name :
     * multipleDevices : 0
     * login : {"apiVersion":"4","expireTime":1568791049,"isFirstLogin":1,"latitude":22.81913827264421,"loginTime":1568791026,"longitude":108.3656922856293,"model":"iPhone 6","offlineTime":1568790757,"osVersion":"12.3.1","serial":"4433207917274A4EAF22F906C16A05F1"}
     * userId : 10000003
     * payPassword : 1
     * myInviteCode :
     */

    private SettingsBean settings;
    private int serialStatus;// 1=没有设备号、2=设备号一致、3=设备号不一致
    private int tokenExists;// 1=令牌存在、0=令牌不存在
    private String nickname;
    private String name;
    private int multipleDevices;
    private LoginBean login;
    private int userId;
    private int payPassword;
    private String myInviteCode;
    private List<Integer> role; // 身份，
    public SettingsBean getSettings() {
        return settings;
    }

    public void setSettings(SettingsBean settings) {
        this.settings = settings;
    }

    public int getSerialStatus() {
        return serialStatus;
    }

    public void setSerialStatus(int serialStatus) {
        this.serialStatus = serialStatus;
    }

    public int getTokenExists() {
        return tokenExists;
    }

    public void setTokenExists(int tokenExists) {
        this.tokenExists = tokenExists;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMultipleDevices() {
        return multipleDevices;
    }

    public void setMultipleDevices(int multipleDevices) {
        this.multipleDevices = multipleDevices;
    }

    public LoginBean getLogin() {
        return login;
    }

    public void setLogin(LoginBean login) {
        this.login = login;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(int payPassword) {
        this.payPassword = payPassword;
    }

    public String getMyInviteCode() {
        return myInviteCode;
    }

    public void setMyInviteCode(String myInviteCode) {
        this.myInviteCode = myInviteCode;
    }

    public static class SettingsBean {
        /**
         * allowAtt : 1
         * allowGreet : 1
         * allowQueryLoc : 1
         * chatRecordTimeOut : -1.0
         * chatSyncTimeLen : -2.0
         * closeTelephoneFind : 1
         * friendFromList : 1,2,3,4,5
         * friendsVerify : 1
         * isEncrypt : 0
         * isKeepalive : 1
         * isTyping : 0
         * isUseGoogleMap : 0
         * isVibration : 0
         * multipleDevices : 0
         * nameSearch : 1
         * onlyAllowAttentionSendMsg : 0
         * openService : 0
         * phoneSearch : 1
         * showLastLoginTime : 1
         * showTelephone : 1
         */

        private int allowAtt;
        private int allowGreet;
        private int allowQueryLoc;
        private String chatRecordTimeOut;
        private double chatSyncTimeLen;
        private int closeTelephoneFind;
        private String friendFromList;
        private int friendsVerify;
        private int isEncrypt;
        private int isKeepalive;
        private int isTyping;
        private int isUseGoogleMap;
        private int isVibration;
        private int multipleDevices;
        private int nameSearch;
        private int onlyAllowAttentionSendMsg;
        private int openService;
        private int phoneSearch;
        private int showLastLoginTime;
        private int showTelephone;

        public int getAllowAtt() {
            return allowAtt;
        }

        public void setAllowAtt(int allowAtt) {
            this.allowAtt = allowAtt;
        }

        public int getAllowGreet() {
            return allowGreet;
        }

        public void setAllowGreet(int allowGreet) {
            this.allowGreet = allowGreet;
        }

        public int getAllowQueryLoc() {
            return allowQueryLoc;
        }

        public void setAllowQueryLoc(int allowQueryLoc) {
            this.allowQueryLoc = allowQueryLoc;
        }

        public String getChatRecordTimeOut() {
            return chatRecordTimeOut;
        }

        public void setChatRecordTimeOut(String chatRecordTimeOut) {
            this.chatRecordTimeOut = chatRecordTimeOut;
        }

        public double getChatSyncTimeLen() {
            return chatSyncTimeLen;
        }

        public void setChatSyncTimeLen(double chatSyncTimeLen) {
            this.chatSyncTimeLen = chatSyncTimeLen;
        }

        public int getCloseTelephoneFind() {
            return closeTelephoneFind;
        }

        public void setCloseTelephoneFind(int closeTelephoneFind) {
            this.closeTelephoneFind = closeTelephoneFind;
        }

        public String getFriendFromList() {
            return friendFromList;
        }

        public void setFriendFromList(String friendFromList) {
            this.friendFromList = friendFromList;
        }

        public int getFriendsVerify() {
            return friendsVerify;
        }

        public void setFriendsVerify(int friendsVerify) {
            this.friendsVerify = friendsVerify;
        }

        public int getIsEncrypt() {
            return isEncrypt;
        }

        public void setIsEncrypt(int isEncrypt) {
            this.isEncrypt = isEncrypt;
        }

        public int getIsKeepalive() {
            return isKeepalive;
        }

        public void setIsKeepalive(int isKeepalive) {
            this.isKeepalive = isKeepalive;
        }

        public int getIsTyping() {
            return isTyping;
        }

        public void setIsTyping(int isTyping) {
            this.isTyping = isTyping;
        }

        public int getIsUseGoogleMap() {
            return isUseGoogleMap;
        }

        public void setIsUseGoogleMap(int isUseGoogleMap) {
            this.isUseGoogleMap = isUseGoogleMap;
        }

        public int getIsVibration() {
            return isVibration;
        }

        public void setIsVibration(int isVibration) {
            this.isVibration = isVibration;
        }

        public int getMultipleDevices() {
            return multipleDevices;
        }

        public void setMultipleDevices(int multipleDevices) {
            this.multipleDevices = multipleDevices;
        }

        public int getNameSearch() {
            return nameSearch;
        }

        public void setNameSearch(int nameSearch) {
            this.nameSearch = nameSearch;
        }

        public int getOnlyAllowAttentionSendMsg() {
            return onlyAllowAttentionSendMsg;
        }

        public void setOnlyAllowAttentionSendMsg(int onlyAllowAttentionSendMsg) {
            this.onlyAllowAttentionSendMsg = onlyAllowAttentionSendMsg;
        }

        public int getOpenService() {
            return openService;
        }

        public void setOpenService(int openService) {
            this.openService = openService;
        }

        public int getPhoneSearch() {
            return phoneSearch;
        }

        public void setPhoneSearch(int phoneSearch) {
            this.phoneSearch = phoneSearch;
        }

        public int getShowLastLoginTime() {
            return showLastLoginTime;
        }

        public void setShowLastLoginTime(int showLastLoginTime) {
            this.showLastLoginTime = showLastLoginTime;
        }

        public int getShowTelephone() {
            return showTelephone;
        }

        public void setShowTelephone(int showTelephone) {
            this.showTelephone = showTelephone;
        }
    }

    public static class LoginBean {
        /**
         * apiVersion : 4
         * expireTime : 1568791049
         * isFirstLogin : 1
         * latitude : 22.81913827264421
         * loginTime : 1568791026
         * longitude : 108.3656922856293
         * model : iPhone 6
         * offlineTime : 1568790757
         * osVersion : 12.3.1
         * serial : 4433207917274A4EAF22F906C16A05F1
         */

        private String apiVersion;
        private int expireTime;
        private int isFirstLogin;
        private double latitude;
        private int loginTime;
        private double longitude;
        private String model;
        private int offlineTime;
        private String osVersion;
        private String serial;

        public String getApiVersion() {
            return apiVersion;
        }

        public void setApiVersion(String apiVersion) {
            this.apiVersion = apiVersion;
        }

        public int getExpireTime() {
            return expireTime;
        }

        public void setExpireTime(int expireTime) {
            this.expireTime = expireTime;
        }

        public int getIsFirstLogin() {
            return isFirstLogin;
        }

        public void setIsFirstLogin(int isFirstLogin) {
            this.isFirstLogin = isFirstLogin;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public int getLoginTime() {
            return loginTime;
        }

        public void setLoginTime(int loginTime) {
            this.loginTime = loginTime;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public String getModel() {
            return model;
        }

        public void setModel(String model) {
            this.model = model;
        }

        public int getOfflineTime() {
            return offlineTime;
        }

        public void setOfflineTime(int offlineTime) {
            this.offlineTime = offlineTime;
        }

        public String getOsVersion() {
            return osVersion;
        }

        public void setOsVersion(String osVersion) {
            this.osVersion = osVersion;
        }

        public String getSerial() {
            return serial;
        }

        public void setSerial(String serial) {
            this.serial = serial;
        }
    }

    //    private int serialStatus;// 1=没有设备号、2=设备号一致、3=设备号不一致
//    private int payPassword; // 是否已经设置了支付密码，
    // 1=游客（用于后台浏览数据）；2=公众号 ；3=机器账号，由系统自动生成；4=客服账号;5=管理员；6=超级管理员；7=财务；

    //private String myInviteCode;
//
//
//    public int getTokenExists() {
//        return tokenExists;
//    }
//
//    public void setTokenExists(int tokenExists) {
//        this.tokenExists = tokenExists;
//    }
//
//    public int getSerialStatus() {
//        return serialStatus;
//    }
//
//    public void setSerialStatus(int serialStatus) {
//        this.serialStatus = serialStatus;
//    }
//
//    public int getPayPassword() {
//        return payPassword;
//    }
//
//    public void setPayPassword(int payPassword) {
//        this.payPassword = payPassword;
//    }
//
    public List<Integer> getRole() {
        return role;
    }

    public void setRole(List<Integer> role) {
        this.role = role;
    }
//
//    public String getMyInviteCode() {
//        return myInviteCode;
//    }
//
//    public void setMyInviteCode(String myInviteCode) {
//        this.myInviteCode = myInviteCode;
//    }
}
